package com.alks.entity.data.entity;

import com.alks.entity.deserializer.LocalDateTimeDeserialize;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author ms
 * @since 2024-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("PC_CUTTING_COLLECT_DETAIL")
@ApiModel(value="PcCuttingCollectDetail对象", description="")
public class PcCuttingCollectDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonIgnore
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @JsonDeserialize(using = LocalDateTimeDeserialize.class)
    @ApiModelProperty(value = "操作时间")
    private LocalDateTime collectTime;

    @ApiModelProperty(value = "操作设备")
    private String collectPad;

    @ApiModelProperty(value = "操作人")
    private String collectUser;

    @ApiModelProperty(value = "指令")
    private String lotNo;

    @ApiModelProperty(value = "部位")
    private String partName;

    @ApiModelProperty(value = "工序")
    private String processCode;

    private String workIdNo;

    @ApiModelProperty(value = "轮次")
    private BigDecimal lsNo;

    @ApiModelProperty(value = "收发类型")
    private String lsCollectType;

    private BigDecimal dispatchQty;

    private String prodMachine;

    @ApiModelProperty(value = "入库数量")
    private BigDecimal inQty;

    @ApiModelProperty(value = "号码")
    private String sizeNo;

    @ApiModelProperty(value = "标签")
    private String labelNo;

    private BigDecimal lShortQty;

    private BigDecimal rShortQty;

    private BigDecimal shortQty;

    @ApiModelProperty(value = "部门ID")
    private String deptNo;

    @ApiModelProperty(value = "部门名称")
    private String deptName;

    private LocalDateTime prodTime;

    @ApiModelProperty(value = "打印标志位")
    private String printFlag;

    @JsonDeserialize(using = LocalDateTimeDeserialize.class)
    @ApiModelProperty(value = "打印时间")
    private LocalDateTime printTime;

    @ApiModelProperty(value = "型体")
    private String style;

    @ApiModelProperty(value = "公司ID")
    private String companyId;

    @ApiModelProperty(value = "合并指令编号")
    private String combineLabel;


}
